﻿CREATE TABLE [dbo].[TraceDetails_File] (
    [RowNumber]       BIGINT         IDENTITY (0, 1) NOT NULL,
    [TraceFileId]     BIGINT         NOT NULL,
    [EventClass]      NVARCHAR (4000) NULL,
    [TextData]        NTEXT          NULL,
    [ApplicationName] NVARCHAR (4000) NULL,
    [NTUserName]      NVARCHAR (4000) NULL,
    [LoginName]       NVARCHAR (4000) NULL,
    [CPU]             INT            NULL,
    [Reads]           BIGINT         NULL,
    [Writes]          BIGINT         NULL,
    [Duration]        BIGINT         NULL,
    [ClientProcessID] INT            NULL,
    [SPID]            INT            NULL,
    [StartTime]       DATETIME       NULL,
    [EndTime]         DATETIME       NULL,
    [ServerName]      NVARCHAR (4000) NULL,
    [DatabaseName]    NVARCHAR (4000) NULL,
    [ObjectName]      NVARCHAR (4000) NULL,
    [HostName]        NVARCHAR (4000) NULL,
    CONSTRAINT [PK__TraceDet__AAAC09D82A4B4B5E] PRIMARY KEY CLUSTERED ([RowNumber] ASC)
);

